package com.clarence.admin.service.impl;


import com.clarence.admin.mapper.UserMapper;
import com.clarence.admin.service.UserService;
import com.clarence.base.service.impl.BaseServiceImpl;
import com.clarence.login.vo.User;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.authc.UsernamePasswordToken;
import org.apache.shiro.session.Session;
import org.apache.shiro.subject.Subject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.sql.Timestamp;
import java.util.Collection;
import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * <pre>
 * Description
 * Copyright:	Copyright (c)2017
 * Company:		Sunny
 * Author:		lenovo
 * Version:		1.0
 * Create at:	2017年6月22日 下午9:40:54
 *
 * 修改历史:
 * 日期    作者    版本  修改描述
 * ------------------------------------------------------------------
 *
 * </pre>
 */
@Service("userService")
public class UserServiceImpl extends BaseServiceImpl<UserMapper, User, Integer> implements UserService {




	@Override
	public User findByAccount(String username) {
		return mapper.findByAccount(username);
	}

	@Autowired
	@Override
	public void setMapper(UserMapper mapper) {
		this.mapper = mapper;
	}
}
